import request from "@/utils/request";

// 列表
export function jobPage(params) {
  return request({
    url: "/job/job/page",
    method: "post",
    data: params
  });
}

// 新增任务
export function jobAdd(params) {
  return request({
    url: `/job/job/save`,
    method: "post",
    data: params
  });
}

// 修改任务
export function jobEdit(params) {
  return request({
    url: `/job/job/update`,
    method: "post",
    data: params
  });
}

// 删除任务
export function jobRemove(params) {
  return request({
    url: `/job/job/remove`,
    method: "post",
    data: params
  });
}

// 启用任务
export function jobEnabled(params) {
  return request({
    url: `/job/job/enabled`,
    method: "post",
    data: params
  });
}

// 禁用任务
export function jobDisabled(params) {
  return request({
    url: `/job/job/disabled`,
    method: "post",
    data: params
  });
}

// 执行任务
export function jobTrigger(params) {
  return request({
    url: `/job/job/trigger`,
    method: "post",
    data: params
  });
}
